<%@page contentType="text/html;charset=UTF-8" language="java" %>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<%@ page isELIgnored="false" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>导航栏</title>
    <script src="../../js/font_2145705_sx71g817y2f/iconfont.js"></script>
    <style>
        p,body,ul{
            padding: 0;
            margin: 0;
        }
        ul {
            list-style: none;
        }
        a {
            text-decoration: none;
            color: black;
        }
        img {
            display: block;
            border: none;
        }
        body {
            background-color: #ef4b4b;
        }
        .rg_layout {
            box-sizing: border-box;
            overflow: hidden;
            width: 1050px;
            margin: 30px auto;
            background-color: #ef4b4b;
            overflow: hidden;
        }
        .rg_layout li{
            height: 281px;
            float: left;
            width: 190px;
            margin: 10px;
            background-color: #fff;
        }
        .rg_layout img {
            width: 190px;
            height: 190px;
        }
        .pd_bottom {
            width: 190px;
            height: 91px;
        }
        .pd_bottom p {
            padding-top: 5px;
            padding-right: 20px;
            padding-left: 20px;
        }
        .pd_bottom span {
            line-height: 40px;
            padding-left: 21px;
            color: #F0250F;
            font-size: 19px;
        }
        .rg_layout>img {
            width: 100%;
        }
        .rg_navi {
            height: 66px;
            width: 100%;
            background-color: #fff;
            position: relative;
            overflow: hidden;
            border-bottom: 2px solid #f30213;
        }
        .rg_navi ul {
            position: absolute;
            bottom: 7px;
            left: 60px;
            overflow: hidden;
        }
        .rg_navi li {
            float: left;
            line-height: 30px;
            padding-left: 30px;
            padding-right: 30px;
            color: black;
            font-size: 19px;
            border-right: 1px solid #ccc;
        }
        .rg_navi span {
            float: right;
            margin-right: 21px;
            margin-top: 30px;
        }
        .rg_navi .userUpdate{
            color: #0077aa;
            float: right;
            margin-right: 21px;
            margin-top: 30px;
        }
        .shoppingCar {
            border-radius: 3px;
            padding-left: 7px;
            background-color: #fff;
            width: 60px;
            height: 70px;
            position: fixed;
            right: 5px;
            top: 330px;
        }
        .icon {
            width: 3em;
            height: 3em;
            vertical-align: -0.15em;
            fill: currentColor;
            overflow: hidden;
        }
    </style>
</head>
<body>
<div class="shoppingCar">
    <a href="/good/shoppingCar">
        <svg class="icon" aria-hidden="true">
            <use xlink:href="#icon-shouye"></use>
        </svg>
        购物车
    </a>
</div>
<div class="rg_navi">
    <ul>
        <li><a href="/user/goodList">全部商品分类</a></li>
        <li><a href="/good/findGoodByType?cid=2">电脑</a></li>
        <li><a href="/good/findGoodByType?cid=1">手机</a></li>
        <li><a href="/good/findGoodByType?cid=3">游戏外设</a></li>
        <li><a href="#">其他分类</a></li>
    </ul>
    <a class="userUpdate" href="/user/userUpdatePage?uid=${sessionScope.uid}">修改信息</a>
    <span>欢迎你，${sessionScope.uid} </span>
</div>
<div class="rg_layout">
    <img src="../imgs/d2b5dfee9ba5c2c5.jpg.webp">
    <ul>
        <c:forEach items="${goods}" var="good" varStatus="s">
            <li>
                <a href="../good/findOneGood?gid=${good.gid}">
                    <img src="../imgs/${good.gsrc}">
                    <div class="pd_bottom">
                        <p>${good.gname}</p>
                        <span>￥${good.gprice}</span>
                    </div>
                </a>
            </li>
        </c:forEach>
    </ul>
</div>
</body>
</html>
